home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / cstdio.arc / INCLUDE.ARC / DEFSTD.H < prev    next >
C/C++ Source or Header  |  1985-08-28  |  1KB  |  37 lines

  1. /*    defstd.h - standard definitions.
  2.     (C) Copyright 1983, 1984, 1985 Gregory R. Mansfield - All Rights Reserved.
  3.     G. R. Mansfield.  83/12/03.
  4.     Ver 1.7-5828.
  5. */
  6.  
  7. #ifndef _defstd        /* allow more than 1 include of this file */
  8. #define _defstd
  9.  
  10. #ifdef _lint        /* provide a "void" for PC-Lint V 1.03 */
  11. #define void
  12. #endif
  13. /*lint +fzu        Set the sizeof-is unsigned flag. */
  14.  
  15. #define EOS 0                /* end of string */
  16. #define ERR -1
  17. #define FALSE 0
  18. #define F_NL 64                /* file name length */
  19. #define NULL 0                /* null pointer */
  20. #define S_CL 80                /* screen column limit */
  21. #define S_RL 25                /* screen row limit */
  22. #define TRUE 1
  23.  
  24. typedef char boolean;        /* TRUE/FALSE switch */
  25. typedef unsigned char BYTE;    /* 8-bit quantity */
  26. typedef unsigned char uchar;    /* unsigned character */
  27. typedef unsigned SEGBASE;    /* 8086 segment register */
  28. typedef char *SEGSIZE;        /* address in a segment */
  29. typedef unsigned int WORD;    /* 16-bit quantity */
  30. typedef unsigned int uint;    /* unsigned integer */
  31.  
  32. #define abs(x) ((x) < 0 ? -(x) : (x))
  33. #define max(x,y) (((x) > (y)) ? (x) : (y))
  34. #define min(x,y) (((x) < (y)) ? (x) : (y))
  35.  
  36. #endif
  37.